package com.fx.mapper;

import com.fx.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {

    SysUser findUserByAccount(@Param("account") String account);

    Integer count(@Param("queryRealName") String queryRealName,
                  @Param("queryRoleId") Integer queryRoleId);

    List<SysUser> findList(@Param("queryRealName") String queryRealName,
                           @Param("queryRoleId") Integer queryRoleId,
                           @Param("beginIndex") Integer beginIndex,
                           @Param("pageSize")Integer pageSize);

    int add(SysUser sysUser);

    SysUser findUserById(Integer id);
}
